{include file='public:header-css'/}
<style>
    body{
        background-color: #fff;
    }
    .error-page {
        height: 100%;
        position: fixed;
        width: 100%;
    }
    .error-body {
        padding-top: 5%;
    }
    .error-body h2 .mdi{
        font-size: 180px;
        font-weight: 700;
        line-height: 180px;
        color: var(--theme);
    }
    .error-body .jump-error .mdi{
        color:var(--red);
    }
    .error-body h2 p {
        margin: 30px 0;
        font-size: 18px;
        font-weight: 700;
    }
    .jump{
        font-size: 16px;
        margin-bottom: 30px;
        color:var(--text-color);
    }
    .btn{
        width: 120px;
        border-radius: 3px;
    }
</style>
<body>
<!--左侧导航-->
<div class="lyear-layout-sidebar-scroll" style="display: none"></div>
<!--End 左侧导航-->
<section class="error-page">
    <div class="error-box">
        <div class="error-body text-center">
            <h4>
                <?php switch ($code) {?>
                <?php case 1:?>
                <h2>
                    <i class="mdi mdi-checkbox-marked-circle-outline"></i>
                    <p><?php echo(strip_tags($msg));?></p>
                </h2>
                <?php break;?>
                <?php case 0:?>
                <h2 class="jump-error">
                    <i class="mdi mdi-close-circle"></i>
                    <p><?php echo(strip_tags($msg));?></p>
                </h2>
                <?php break;?>
                <?php } ?>
            </h4>
            <h4 class="jump">
                页面自动跳转中 等待时间： <b id="wait"><?php echo($wait);?></b>
            </h4>
            <a href="<?php echo($url);?>" id="href" class="btn btn-theme">返回</a>
        </div>
    </div>
</section>
<script type="text/javascript">
    (function(){
        var wait = document.getElementById('wait'),
            href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            if(time <= 0) {
                location.href = href;
                clearInterval(interval);
            }
        }, 1000);
    })();
</script>
</body>
</html>